<!DOCTYPE html>

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>宽带组:历史记录</title>

  <link href="../../css/bootstrapmin.css" rel="stylesheet" media="screen">
  <link href="../../css/style.css" rel="stylesheet">
<script type="text/javascript" src="../../js/header.js"></script>



  
</head>

<?php
require("header.php");
?>
<!-- end of header -->
 
    <div id= "achievement1">
<?php
	require("../../DBops.php");
	session_start();
	$con = connect("localhost", "root", "", "lab");
	$result = query($con, "*", "personalinfo", "ID", $_SESSION['user']);
	$row = mysql_fetch_array($result);
	
	
	if(isset($_SESSION['user']))
	{
		echo "<div style='height:30px;background:#A4D3EE;'>
		      
              <p  style='margin-right:10px;float:right;'>登录为: <a href = \"../../infor.php?id=".$_SESSION['user']."\">".$_SESSION['user']."</a></font>&nbsp&nbsp
			  <a  onclick=\"if(confirm('确定要退出系统吗?')){parent.location.href ='../../logout.php'}\" href=\"javascript:void(0)\">退出</a></font></p></div>";
	}
	
	

?>
 
<!-- /header -->
<div style="width:700px;height:400px;float:left">
		<p>&nbsp;&nbsp;<strong>实验室项目组:</strong></p>
	
	
			<?php
	$con = connect("localhost", "root", "", "lab");

	//$result = mysql_query("select * from projecteam");
	//$row = mysql_fetch_array($result);

	echo"<div class='table sectionedit2'>
		<table class='inline'>
			<tbody>
			";
			$result = mysql_query("select ID,name from projecteam");
			//$count=mysql_num_rows($result);
			
			while($row = mysql_fetch_array($result)){
				echo"<tr class='row0'>";
				//$result = query($con, "*", "projecteam", "ID", $i);
				//$row = mysql_fetch_array($result);

				echo"
				<th class='col0 leftalign'> <a href='Report_history.php?id=".$row['ID']."' class='wikilink1' title='".$row['name']."'>".$row['name']."</a>  </th>
				<td style='width:100px;'><a href='Con_history.php?id=".$row['ID']."'>会议纪要</a></td>";
				$result1 = mysql_query("select * from personalinfo where projecteamID=".$row['ID']."");
				$stu_num=mysql_num_rows($result1);
				$stu_perow= ceil($stu_num/5);
				for($i=0;$i<$stu_perow;$i++){
				//echo"<tr class='row0'>";
				$y=0;
				while($y<5&&$row1 = mysql_fetch_array($result1)){
					if($row1['role']=='student')
					echo"<td class='col0' style='width:70px;'><a href='Report_history.php?id=".$row1['ID']."'>".$row1['name']."</a></td>";
					$y++;
				}
				echo"</tr>";
				if($i==($stu_perow-1))echo"";
				else
				echo"<tr><td></td><td></td>";
		}
	}	
	?>
</tbody></table></div>
<hr>

</div>
</div>
  


          
</div>
        
		<br/><br/>
<!-- ********** FOOTER ********** -->

</body></html>
